<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <f:view>
        <h:head>
            <meta http-equiv="Content-Type" content="text/html" />
            <link rel="shortcut icon" href="#{facesContext.externalContext.requestContextPath}/resources/img/favicon.ico" type="image/x-icon" />
            <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/resources/css/cabecalho.css" />
            <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/resources/css/principal.css" />
            <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/resources/css/iconmenu.css" />
            <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/resources/css/shCoreDefault.css" />
            <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/resources/js/js.js" />
            <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/resources/js/shBrushJava.js" />
            <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/resources/js/shCore.js" />
            <title>
                <ui:insert name="pageTitle">
                    <h:outputText value="#{msg.loginTitleTemplate}"/>
                </ui:insert>
            </title>
        </h:head>

        <h:body style="background: #ffffff url('#{facesContext.externalContext.requestContextPath}/resources/img/barrasuperior.png') repeat-x top;"
                onload="infIE('infmsg')">

            <div class="logoClass">
                <ui:insert name="header">
                    <h:panelGroup id="logo">
                        <h:graphicImage library="img" name="logo2.png"/>
                    </h:panelGroup>
                </ui:insert>
            </div>
            <div class="menuSuperior">
                <ui:include src="tempmenupainel.xhtml"/>
            </div>

            <div class="menuPrincipal">
                <ui:insert name="menuLateral">
                    <h:form id="formTempMenu">
                        <p:menu style="width:190px" zindex="0" type="sliding" backLabel="#{msg.voltar}" styleClass="bvb-font">
                            <p:menuitem value="#{msg.pmiInicioRapido}" update="conteudoCentralGroup" icon="inicioRapido" action="#{fluxoExibicaoPrincipal.metodoExibirInicioRapido()}"/>
                            <p:menuitem value="#{msg.pmiQuestoesDisponiveis}" update="conteudoCentralGroup" icon="principalQuestoes" action="#{fluxoExibicaoPrincipal.metodoExibirQuantidadeQuestoes()}"/>
                            <p:menuitem value="#{msg.pmiAlunosLogados}" update="conteudoCentralGroup" icon="principalAlunos" action="#{fluxoExibicaoPrincipal.metodoExibirUsuariosLogados()}" rendered="#{usuario_logado != null and loginManager.usuario.maxRole.papel.level >= 50 }"/>
                            <p:menuitem value="#{msg.pmiSobre}" update="conteudoCentralGroup" icon="globo" action="#{fluxoExibicaoPrincipal.metodoExibirSobre()}"/>
                        </p:menu>
                    </h:form>
                    <ui:param name="tituloPainelParan" value="#{fluxoExibicaoPrincipal.tituloRichPanel}"/>
                </ui:insert>
            </div>
            <div class="conteudoCentralStyle">
                <h:panelGroup id="conteudoCentralGroup">
                    <p:panel id="painelPrincipal" header="#{tituloPainelParan}" style="width: 900px;" >
                        <div class="msgIeGraficos">
                            <span id="infmsg" ></span>
                        </div>
                        <h:panelGrid columns="2">
                            <h:panelGroup id="grup1">
                                <ui:insert name="statusAjax">
                                    <ui:include src="tempstatus.xhtml">
                                        <ui:param name="imgParam" value="#{fluxoExibicaoPrincipal.imgURLNormal}"/>
                                    </ui:include>
                                </ui:insert>
                            </h:panelGroup>
                            <ui:insert name="msgs">
                                <p:messages id="messages" showDetail="true" globalOnly="true" autoUpdate="true" />
                            </ui:insert>
                        </h:panelGrid>
                        <p:spacer width="100%" height="5"/>
                        <p:separator />
                        <p:spacer width="100%" height="5"/>
                        <ui:insert name="conteudoCentral">
                            <ui:include src="../principal/alunoslogados.xhtml"/>
                            <ui:include src="../principal/relatorioquestoes.xhtml"/>
                            <ui:include src="../principal/iniciorapido.xhtml"/>
                            <ui:include src="../principal/sobre.xhtml"/>
                        </ui:insert>
                    </p:panel>
                </h:panelGroup>
            </div>
        </h:body>
    </f:view>
</html>
